import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'  
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'virtual:uno.css'
import router from './router/index.ts'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store/index.ts'
import i18n from '@/util/i18n/index.js'
import 'element-plus/theme-chalk/dark/css-vars.css'  //暗黑模式
// import '@/theme/index.scss'
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router).use(store)
app.use(i18n)
app.mount('#app')
